<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.Date" %>
<!-- header -->
<div id="head">
	<div class="headTop text-shadow"><h1>后台管理系统</h1></div>
	<div class="headBar">
		<ul>
			<li>服务器时间:<span id="serverTime"></span></li>
			<li>当前在线人数:<span id="onlineNum">${applicationScope.onlineNum}</span></li>
			<li>服务器资源: cup 内存</li>
		</ul>

		
	</div>
</div>
<script type="text/javascript">
	var serverTime = new Date();
	serverTime.setTime(<%=new Date().getTime()%>);
	var time = $("#serverTime").html(serverTime.format("yyyy-MM-dd hh:mm:ss"));
	setInterval(function(){
			time.html(serverTime.format("yyyy-MM-dd hh:mm:ss"));
			serverTime.setTime(serverTime.getTime() + 1000);
	},1000);
</script>
<!-- end header -->
